package com.ruoyi.point.service.impl;

import java.util.List;

import com.ruoyi.point.mapper.PickerMapper;
import com.ruoyi.point.pojo.Picker;
import com.ruoyi.point.service.IPickerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 抓手Service业务层处理
 *
 * @author ruoyi
 * @date 2024-04-26
 */
@Service
public class PickerServiceImpl implements IPickerService
{
    @Autowired
    private PickerMapper pickerMapper;

    /**
     * 查询抓手
     *
     * @param pickerId 抓手主键
     * @return 抓手
     */
    @Override
    public Picker selectPickerByPickerId(Long pickerId)
    {
        return pickerMapper.selectPickerByPickerId(pickerId);
    }

    /**
     * 查询抓手列表
     *
     * @param picker 抓手
     * @return 抓手
     */
    @Override
    public List<Picker> selectPickerList(Picker picker)
    {
        return pickerMapper.selectPickerList(picker);
    }

    /**
     * 新增抓手
     *
     * @param picker 抓手
     * @return 结果
     */
    @Override
    public int insertPicker(Picker picker)
    {
        return pickerMapper.insertPicker(picker);
    }

    /**
     * 修改抓手
     *
     * @param picker 抓手
     * @return 结果
     */
    @Override
    public int updatePicker(Picker picker)
    {
        return pickerMapper.updatePicker(picker);
    }

    /**
     * 批量删除抓手
     *
     * @param pickerIds 需要删除的抓手主键
     * @return 结果
     */
    @Override
    public int deletePickerByPickerIds(Long[] pickerIds)
    {
        return pickerMapper.deletePickerByPickerIds(pickerIds);
    }

    /**
     * 删除抓手信息
     *
     * @param pickerId 抓手主键
     * @return 结果
     */
    @Override
    public int deletePickerByPickerId(Long pickerId)
    {
        return pickerMapper.deletePickerByPickerId(pickerId);
    }
}
